<%-- 
    Document   : confirm
    Created on : Mar 19, 2012, 3:57:11 AM
    Author     : maconcon
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
             <%
            response.setHeader("Pragma","no-cache");
            response.setHeader("Cache-Control","no-store");
            response.setHeader("Expires","0");
            response.setDateHeader("Expires",-1);
        %>
        
         <%
        if(session.getAttribute("user")== null){
            response.sendRedirect("index.jsp");
            }

               else{
        %>
        
    </head>
    <body>
 <% out.print("Welcome " +session.getAttribute("id")+ ""); 
 int x= Integer.parseInt(session.getAttribute("id").toString());%>
           <% out.print("Welcome " +session.getAttribute("user")+ "");%>
		   
           <form name="confirm"  method="post" action="ConfirmServlet" > 
                 <input type="hidden" name="customerid" value="<%=x%>" >
               Credit Card Name:<input type="text" name="creditname" id="ccname"/></br>
              Credit Card Number:<input type="text" name="creditnum" id="creditcard1"/></br>
                 CVV2:   <input type="text" name="cvv2"  />    
                 <input type="submit" value="Confirm" />   
    
    </body>
    <%
       }
    %>
</html>
